package com.rjjs.Xiaozhi.assistant;


import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "ollamaChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "appointmentTools",
        contentRetriever = "contentRetriever"
)
public interface XiaozhiAgent {
//fromResource="my-prompt-yey.txt"
    @SystemMessage(fromResource = "/Prompt/my-eye-t.txt")
   String chat(@MemoryId Long userId,@UserMessage String userMessage);

    @SystemMessage(fromResource = "/Prompt/my-eye-j.txt")
    String chat1(@MemoryId Long userId,@UserMessage String userMessage);


}

